RequestPermissionCallback

This callback is invoked when a web page requests a permission, for example to enable geolocation or notifications. The permission type and the information about the web page can be obtained from the passed Params object.

Use the grant method to grant the requested permission.

Use the deny method to deny the requested permission.

If the callback throws an exception, the deny method will be invoked.

Types

Link copied to clipboard
An action providing a response to the RequestPermissionCallback.
Link copied to clipboard
interface Params
The parameters of the RequestPermissionCallback.

Functions

Link copied to clipboard
abstract fun on(params: P, tell: R)
Invoked when the callback needs a response for the given callback parameters.